package org.smr;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;

@MapperScan("org.smr.ministore.dao")
@ComponentScan("org.smr.ministore.service.impl")
@EnableAutoConfiguration
@SpringBootApplication
public class SpringBootJunitTestApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(SpringBootJunitTestApplication.class).run(args);
    }

    public int getExitCode() {
        System.out.println(getClass().getName() + " is exit!");
        return 0;
    }
}
